import { _decorator, Component, Node, Sprite, SpriteFrame } from 'cc';
import { ChangeManager } from './ChangeManager';
const { ccclass, property } = _decorator;

@ccclass('WearItem')
export class WearItem extends Component {

    sprite: Sprite;
    childSprite: Sprite;

    onLoad() {
        this.sprite = this.getComponent(Sprite);
        this.childSprite = this.node.children[0].getComponent(Sprite);
    }

    update(deltaTime: number) {

    }

    Click() {
        ChangeManager.Instance.ClothesClick(this.node);
    }
}